<template>
    <div id="app">
        <Layout>
            <template #left>
                <SiteAside />
            </template>
            <template #main>
                <!-- vue-router 全局注册的组件，路由视图，根据地址切换相应的路由
                配合 router-link 切换路由 -->
                <RouterView />
            </template>
        </Layout>
        <BackTop />
    </div>
</template>

<script>
import Layout from "@/components/Layout"
import BackTop from "@/components/BackTop"
import SiteAside from "@/components/SiteAside"

export default {
    name: "App",
    components: {
        Layout,
        SiteAside,
        BackTop
    },
    data() {
        return {
            cur_page: 11,
            total_page: 23
        }
    }
}
</script>

<style lang="less" scoped>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    position: relative;
    height: 100vh;
    width: 100vw;
    .layout-container {
        overflow: hidden;
        .site-aside-container {
            width: 190px;
        }
        .main {
            position: relative;
        }
    }
}
</style>
